package com.bw.order_module.confirm;

import com.bw.order_module.entity.Order;
import com.bw.order_module.entity.OrderEntity;
import com.bw.order_module.entity.PayEntity;
import com.bw.order_module.entity.PayOrderEntity;
import com.bw.order_module.entity.SubOrderEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface ApiService {

    //获取订单详情
    @POST("order/getOrderById")
    Observable<OrderEntity>requestOrderDetail(@Body RequestBody body);
    //确认订单
    @POST("order/submitOrder")
    Observable<SubOrderEntity>requestSubOrder(@Body RequestBody body);
    //获取支付宝支付签名信息接口
    @POST("pay/getPaySign")
    Observable<PayEntity>requestPaySign(@Body RequestBody body);
    //确认当前订单支付结果请求
    @POST("order/pay")
    Observable<PayOrderEntity>requestPayOrder(@Body RequestBody body);
}
